Skip to main content
Version: 2.x.x

UseCommandEventsReturnType


import { UseCommandEventsReturnType } from "@hyper-fetch/react"

Description

Defined in helpers/use-command-events/use-command-events.types.ts:73

Preview

type UseCommandEventsReturnType<T> = [UseCommandEventsActionsType<T>, { addDataListener: (command: CommandInstance) => VoidFunction; addLifecycleListeners: (command: CommandInstance, requestId?: string) => VoidFunction; clearDataListener: VoidFunction; clearLifecycleListeners: () => void; removeLifecycleListener: (requestId: string) => void }];

Structure

[UseCommandEventsActionsType<T>, {
addDataListener: (command: CommandInstance) => VoidFunction;
addLifecycleListeners: (command: CommandInstance, requestId?: string) => VoidFunction;
clearDataListener: VoidFunction;
clearLifecycleListeners: () => void;
removeLifecycleListener: (requestId: string) => void;
}]